import request from '@/config/request.js';

// 获取招聘信息列表
export const resumeList = (params) => request.get('/wx/resume/list', params)

// 支付接口
export const pay = (data) => request.post('/wx/orders/submit', data)

// 获取支付状态
export const getPayStatus = (params) => request.get('/wx/orders/pay/status', params)

// 导出PDF
export const exportPDF = (data) => request.post('/wx/resume/pdf', data)

// 投递
export const sendResume = (data) => request.post('/wx/resume/delivery', data)

// 是否可以投递简历
export const delivery = (data = {}) => request.post('/wx/resume/judge/delivery', data)

// 获取 "我的" 列表信息
export const getMyList = (params) => {
  return Promise.all([request.get('/wx/resume/myResume', params), request.get('/wx/resume/export/pdf/list', params), request.get('/wx/resume/orderlist', params)])
}

// 使用简历
export const useResume = (id) => request.get(`/wx/resume/useResume/${id}`)